package com.ttc.mBackup;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class ScheduleActivity extends Activity {

	
	private ImageButton btnContacts;
	private ImageButton btnSMS;
	private ImageButton btnImages;
	private ImageButton btnAgent;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_schedule);
		btnContacts = (ImageButton) findViewById(R.id.schedule_btnContacts);
		btnSMS = (ImageButton) findViewById(R.id.schedule_btnSMS);
		btnImages = (ImageButton) findViewById(R.id.schedule_btnImages);
		btnAgent = (ImageButton) findViewById(R.id.schedule_btnAgent);

		btnContacts.setOnClickListener(oclContacts);
		btnSMS.setOnClickListener(oclSMS);
		btnImages.setOnClickListener(oclImages);
		btnAgent.setOnClickListener(oclAgent);
		
	}

	OnClickListener oclContacts = new OnClickListener() {

		@Override
		public void onClick(View v) {
			// Start your task

		}
	};

	OnClickListener oclSMS = new OnClickListener() {

		@Override
		public void onClick(View v) {
			Intent i = new Intent(ScheduleActivity.this, com.ttc.mBackup.BackupSMS.ScheduleActivity.class);
			startActivity(i);
		}
	};

	OnClickListener oclImages = new OnClickListener() {

		@Override
		public void onClick(View v) {
			
		}
	};

	OnClickListener oclAgent = new OnClickListener() {

		@Override
		public void onClick(View v) {
			// Start your task
			Intent i = new Intent("com.ttc.mBackup.BackupAgent.BARSCHEDULETYPE");
			startActivity(i);
		}
	};

}
